var express = require('express');
var router = express.Router();
var db = require("../monmgoDB/db")
router.post('/showDetail', function (req, res, next) {
    var id = req.body.id;
    db.findById(id, function (err, data) {
        if (err) {
            res.send({
                code: 201,
                msg: "未查询到当前用户信息"
            })
        } else {
            res.send({
                code: 200,
                data,
                msg: "查询成功"
            })
        }
    })
});

module.exports = router;
